<?php if($this->uri->segment(3)=='edit') : ?>
    <?php echo form_hidden('kode_barang',$_POST['kode_barang']) ?>
<?php else: ?>
    <?php echo form_input(array('name'=>'kode_barang','label'=>'Kode Barang','size'=>'')) ?>
<?php endif ?>
<?php echo form_input(array('name'=>'nama_barang','label'=>'Nama Barang','size'=>'50')) ?>
<?php echo form_input(array('name'=>'nomor_register','label'=>'Nomor Register','size'=>'')) ?>
<?php echo form_input(array('name'=>'merek_tipe','label'=>'Merek/Tipe','size'=>'')) ?>
<?php echo form_input(array('name'=>'nomor_pabrik','label'=>'Nomor Pabrik','size'=>'')) ?>
<?php echo form_input(array('name'=>'bahan','label'=>'Bahan','size'=>'50')) ?>
<?php echo form_input(array('name'=>'asal_cara_perolehan','label'=>'Asal dan Cara Perolehan','size'=>'50')) ?>
<?php echo form_input(array('name'=>'tanggal_perolehan','label'=>'Tanggal Perolehan','size'=>'', 'class'=>'tanggal')) ?>
<?php echo form_input(array('name'=>'ukuran_barang','label'=>'Ukuran','size'=>'')) ?>
<?php echo form_input(array('name'=>'satuan','label'=>'Satuan','size'=>'')) ?>
<?php echo form_dropdown('kondisi',array('Baik'=>'Baik','Rusak'=>'Rusak',),null,null,array('label'=>'Kondisi'))?>
<?php echo form_input(array('name'=>'jumlah','label'=>'Jumlah','size'=>'')) ?>
<?php echo form_input(array('name'=>'harga_satuan','label'=>'Harga Satuan','size'=>'')) ?>
<?php echo form_input(array('name'=>'keterangan','label'=>'Keterangan','size'=>'50')) ?>
<?php echo form_dropdown('kategori_id',$this->referensi->get_list_referensi('sapras_kategori_barang','id','kategori'),null,null,array('label'=>'Kategori'))?>

